package com.chee.plant.logic;


import com.chee.plant.logic.user.ShowUserEmailHandler;
import com.chee.plant.logic.user.ShowUserInfoHandler;
import com.chee.plant.logic.user.UserFriendListHandler;
import com.chee.plant.logic.user.ShowUserLogHandler;
import com.chee.plant.logic.user.UserLoginHandler;

public class CmdHandlerFactory {
	public static CmdHandler getHandler(PlantCmd command) {
		switch (command) {
		case Login:
			return new UserLoginHandler();
		case GetUserFriendList:
			return new UserFriendListHandler();
		case GetUserLog:
		   return new ShowUserLogHandler();
		case GetUserEmail:
			return new ShowUserEmailHandler();
		case  GetUserInfo:
			return new ShowUserInfoHandler();
			
		}
		
			
		return null;
	}
}
